#!/usr/local/python/bin/python
# coding=utf-8
__author__ = 'Junjie.M'


class FileColConfig:
    _data = []

    def setData(self, data):
        global _data
        _data = data

    def getBizCode(self):
        return _data['bizCode']

    def getColType(self):
        return _data['colType']

    def getColName(self):
        return _data['colName']

    def getColLength(self):
        if not _data['colLength']:
            return ''
        return _data['colLength']

    def getColPos(self):
        return _data['colPos']

    def isAllowNull(self):
        return _data['isAllowNull'] == '1'

    def getColCnName(self):
        if not _data['colCnName']:
            return ''
        return _data['colCnName']
